package com.youkeyi.ddy.cloud.common.api.basic.storage.stock;

import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.dto.StorageStockOptionLogListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockOptionLogCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockOptionLogDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockOptionLogQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.stock.param.StorageStockOptionLogUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * StorageStockOptionLogCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-STORAGE", fallback = StorageStockOptionLogCloudServiceFallback.class)
@RequestMapping("/storage/stock/option/log")
public interface StorageStockOptionLogCloudService {

    /**
     * 查询库存操作日志列表.
     *
     * @param param the param
     * @return the auth list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract StorageStockOptionLogListCloudDto query(@RequestBody StorageStockOptionLogQueryCloudParam param);

    /**
     * 新增库存操作日志.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody StorageStockOptionLogCreateCloudParam param);

    /**
     * 编辑库存操作日志.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody StorageStockOptionLogUpdateCloudParam param);

    /**
     * 删除库存操作日志.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody StorageStockOptionLogDeleteCloudParam param);
}
